﻿@model OTAS.Models.StudentModel

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>


@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        <h4>StudentModel</h4>
        <hr />
        @Html.ValidationSummary(true)
        @Html.HiddenFor(model => model.USN)

        <div class="form-group">
            @Html.LabelFor(model => model.NAME, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.NAME)
                @Html.ValidationMessageFor(model => model.NAME)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.DOB, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.DOB)
                @Html.ValidationMessageFor(model => model.DOB)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.FATHERNAME, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.FATHERNAME)
                @Html.ValidationMessageFor(model => model.FATHERNAME)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.MOTHERNAME, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.MOTHERNAME)
                @Html.ValidationMessageFor(model => model.MOTHERNAME)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.GUARDIANNAME, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.GUARDIANNAME)
                @Html.ValidationMessageFor(model => model.GUARDIANNAME)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.PERM_ADDRESS, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.PERM_ADDRESS)
                @Html.ValidationMessageFor(model => model.PERM_ADDRESS)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.LOC_ADDRESS, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.LOC_ADDRESS)
                @Html.ValidationMessageFor(model => model.LOC_ADDRESS)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.MOBILE, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.MOBILE)
                @Html.ValidationMessageFor(model => model.MOBILE)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.PRIMARY_CONTACT, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.PRIMARY_CONTACT)
                @Html.ValidationMessageFor(model => model.PRIMARY_CONTACT)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.DeptId, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.HiddenFor(model => model.DeptId)
                @Html.TextBoxFor(model => model.DeptId, new { disabled = "disabled", @readonly = "readonly" })
                @*@Html.EditorFor(model => model.DeptId)*@
             </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Sem, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.HiddenFor(model => model.Sem)
                @Html.TextBoxFor(model => model.Sem, new { disabled = "disabled", @readonly = "readonly" })
                @*@Html.EditorFor(model => model.Sem)*@
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Section, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.HiddenFor(model => model.Section)
                @Html.TextBoxFor(model => model.Section, new { disabled = "disabled", @readonly = "readonly" })
                @*@Html.EditorFor(model => model.Section)*@
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.EMail, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.EMail)
                @Html.ValidationMessageFor(model => model.EMail)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.SSLC, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.SSLC)
                @Html.ValidationMessageFor(model => model.SSLC)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.PUC, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.PUC)
                @Html.ValidationMessageFor(model => model.PUC)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Batch, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Batch)
                @Html.ValidationMessageFor(model => model.Batch)
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Save" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
